package com.woniu.carrent.pojo;


import java.io.Serializable;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName t_car
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("t_car")
public class TCar implements Serializable {

    /**
    * 
    */
    @TableId(value = "carId",type = IdType.ASSIGN_ID)
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer carid;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    @TableField(exist = false)
    private String carname;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer ctypeid;
    @TableField(exist = false)
    private String ctypename;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer brandid;
    @TableField(exist = false)
    private String brandname;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String plate;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String pictures;
    /**
    * 
    */
    @ApiModelProperty("")
    private BigDecimal price;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer isonline;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer isdeleted;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String files;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer lid;
    @TableField(exist = false)
private String lname;
@TableField(value = "status",fill = FieldFill.INSERT)
private  Integer status;

}
